package com.rjj.wlqq.wx.entity.template;

import com.rjj.wlqq.wx.tool.StrKit;

public class Content
{
    private String value;
    private String color;

    public static Content Builder()
    {
        return new Content();
    }

    public Content build()
    {
        if (StrKit.isBlank(this.value))
        {
            throw new IllegalStateException("value is null");
        } else if (StrKit.isBlank(this.color))
        {
            throw new IllegalStateException("color is null");
        } else
        {
            return new Content(this.value, this.color);
        }
    }

    private Content()
    {
    }

    private Content(String value, String color)
    {
        this.value = value;
        this.color = color;
    }

    public String getValue()
    {
        return value;
    }

    public Content setValue(String value)
    {
        this.value = value;
        return this;
    }

    public String getColor()
    {
        return color;
    }

    public Content setColor(String color)
    {
        this.color = color;
        return this;
    }
}